var map = new ol.Map({
    target: 'map',
    layers: [new ol.layer.Tile({
        //source: new ol.source.MapQuest({layer: 'sat'})
        source: new ol.source.OSM()
        //source: new ol.source.Stamen({
        //    layer: "watercolor"
        //})
    })],
    view: new ol.View({
        center: [37.41, 8.82],
        projection: "EPSG:3857",
        zoom: 12
    })
});
var scaleLineControl=new ol.control.ScaleLine();
scaleLineControl.setUnits(ol.control.ScaleLineUnits.METRIC);
map.addControl(scaleLineControl);
zoomslider = new ol.control.ZoomSlider();
map.addControl(zoomslider);